/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ec.dmz.sig.ejb.generico;

import java.io.Serializable;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Estiwar
 */
public class Generico<T> implements Serializable {

    @PersistenceContext(unitName = "DmzSIGEjbPU")
    private EntityManager entityManager;
    private Class<T> entityClass;

    public Generico(Class<T> entityClass) {
        this.entityClass = entityClass;
    }

    /**
     * @return the entityManager
     */
    public EntityManager getEntityManager() {
        return entityManager;
    }

    /**
     * @param entityManager the entityManager to set
     */
    public void setEntityManager(EntityManager entityManager) {
        this.entityManager = entityManager;
    }
}
